<cfparam name="volunteerID" type="integer">
<cfparam name="rv" type="string" default="settings">

<cfset volunteer = application.volunteerGateway.get(volunteerID)>

<cfoutput>

	<cfif volunteer.getVolunteer_ID() gt 0>
	
		<div class="buttonBar">
			<a href="#script_name#?view=#rv#&volunteerID=#volunteerID#" class="formLink2">Back</a>
		</div>
	
		<table class="panel">
			<thead>
				<tr>
					<th colspan="2">Personal Information</th>
				</tr>
			</thead>
			<tbody>
				<cfif volunteerID gt 0>
					<tr>
						<th>Volunteer ID:</th>
						<td>#volunteer.getVolunteer_ID()#</td>
					</tr>
				</cfif>
				<tr valign="top">
					<th>Name:</th>
					<td>#volunteer.getFirst_Name()# #volunteer.getLast_Name()#</td>
				</tr>
				<cfif Len(Trim(volunteer.getTitle())) gt 0>
					<tr valign="top">
						<th>Title:</th>
						<td>#volunteer.getTitle()#</td>
					</tr>
				</cfif>
				<cfif Len(Trim(volunteer.getOrganization())) gt 0>
					<tr valign="top">
						<th>Organization:</th>
						<td>#volunteer.getOrganization()#</td>
					</tr>
				</cfif>
				<tr valign="top">
					<th>Address:</th>
					<td>
						#volunteer.getAddress()#<br>
						<cfif len(volunteer.getAddress2())>
							#volunteer.getAddress2()#<br>
						</cfif>
						#volunteer.getCity()#, CA #volunteer.getZip_Code()#
					</td>
				</tr>
				<cfif len(volunteer.getPhone1())>
					<tr valign="top">
						<th>Phone:</th>
						<td>#volunteer.getPhone1()#</td>
					</tr>
				</cfif>
				<cfif len(volunteer.getPhone2())>
					<tr valign="top">
						<th>Fax:</th>
						<td>#volunteer.getPhone2()#</td>
					</tr>
				</cfif>
				<tr valign="top">
					<th>Email:</th>
					<td><a href="mailto:#volunteer.getEmail()#">#volunteer.getEmail()#</a></td>
				</tr>
			</tbody>
		</table>
	
		<table class="panel">
			<thead>
				<tr>
					<th colspan="2">Volunteer Information</th>
				</tr>
			</thead>
			<tbody>
				<tr valign="top">
					<th>Cities:</th>
					<td>
						<cfif volunteer.getStatewide()>
							Statewide<br>
						<cfelse>
							#replace(application.volunteerGateway.getUniqueCityNames(volunteerID), ",", ", ", "ALL")#<br>
						</cfif>
				</tr>
				<tr valign="top">
					<th>Outreach:</th>
					<td>#yesnoformat(volunteer.getOutreach())#</td>
				</tr>
				<tr valign="top">
					<th>FAFSA expert:</th>
					<td>#yesnoformat(volunteer.getFafsa_Expert())#</td>
				</tr>
				<tr valign="top">
					<th>One-on-one assistance:</th>
					<td>#yesnoformat(volunteer.getOneOnOne_Assistance())#</td>
				</tr>
				<tr valign="top">
					<th>Support volunteer:</th>
					<td>#yesnoformat(volunteer.getSupport_Volunteer())#</td>
				</tr>
				<tr valign="top">
					<th>Interpreter:</th>
					<td>
						#yesnoformat(volunteer.getInterpreter())#
						<cfif volunteer.getInterpreter() and len(volunteer.getInterpreter_languages())>
							&nbsp;&nbsp;&nbsp;Languages: #replace(volunteer.getInterpreter_Languages(), ",", ", ", "ALL")#<br>
						</cfif>
					</td>
				</tr>
				<tr valign="top">
					<th>Shirt Size:</th>
					<td>#volunteer.getShirt_Size()#</td>
				</tr>
			</tbody>
		</table>
	
	<cfelse>
	
		<div class="alert alert-info notFound">Volunteer not found</div>
	
	</cfif>

</cfoutput>